package com.sxbbc.common.core.service.system.solr.entity;

import java.io.Serializable;
import java.sql.Date;


import org.apache.solr.client.solrj.beans.Field;

/**
 * solr 产品实体类  创建实体时参数名称需要带上标签，否则搜索引擎会标记重复字段 例如下面pro
 * @author arno
 *
 */
public class SolrProductDto implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 7143319471946411775L;

	/** 产品编号 solr搜索引擎必须要一个 ID 用编号作为id */
	@Field
	private String id;

	/** 产品id */
	@Field
	private Integer pid;

	/** 店铺id */
	@Field
	private Integer bid;

	/** 产品图片 */
	@Field
	private String purl;

	/** 产品名称 */
	@Field
	private String pname;

	/** 产品描述 */
	@Field
	private String descval;

	/** 单价 */
	@Field
	private String proprice;

	/** 原价 */
	@Field
	private String prooldprice;

	/** 已售 */
	@Field
	private Integer saleqty;

	/** 关键词 */
	@Field
	private String keyword;

	/** 上架时间 */
	@Field
	private Date stime;

	/** 排序 */
	@Field
	private Integer sort;

	/** 产品类型 */
	@Field
	private Integer type;

	/** 1级分类id */
	@Field
	private Integer fclassid;

	/** 2级分类id */
	@Field
	private Integer sclassid;

	/** 3级分类id */
	@Field
	private Integer tclassid;

	/** 类型名称 如自营 三方 */
	@Field
	private String bTypeName;

	/** 商品活动名 */
	@Field
	private String activitySign;

	@Field
	private String point;

	/** 产品描述 */
	@Field
	private String proCode;
	
	public SolrProductDto() {
		
	}
	
	/**
	 * 
	 * @param pid 产品id
	 * @param bid 店铺id
	 * @param id 产品编号
	 * @param purl 产品图片
	 * @param pname 产品名称
	 * @param descval 产品描述
	 * @param price 单价
	 * @param oldprice 原价
	 * @param saleqty 已售
	 * @param keywords 关键词
	 * @param stime 上架时间
	 * @param sort 排序
	 * @param type 产品类型
	 * @param fclassid 1级分类
	 * @param sclassid 2级分类
	 * @param tclassid 3积分类型
	 */
	public SolrProductDto(Integer pid,Integer bid,String id,String purl,String pname
			,String descval,String price,String oldprice,Integer saleqty,String keywords
			,Date stime,Integer sort,Integer type,Integer fclassid,Integer sclassid,Integer tclassid,String proCode) {
		this.pid=pid;
		this.bid=bid;
		this.id=id;
		this.purl=purl;
		this.pname=pname;
		this.descval=descval;
		this.proprice=price;
		this.prooldprice=oldprice;
		this.saleqty=saleqty;
		this.keyword=keywords;
		this.stime=stime;
		this.sort=sort;
		this.type=type;
		this.fclassid=fclassid;
		this.sclassid=sclassid;
		this.tclassid=tclassid;
		this.proCode = proCode;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Integer getPid() {
		return pid;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	public String getPurl() {
		return purl;
	}

	public void setPurl(String purl) {
		this.purl = purl;
	}

	public String getPname() {
		return pname;
	}

	public void setPname(String pname) {
		this.pname = pname;
	}

	public String getDescval() {
		return descval;
	}

	public void setDescval(String descval) {
		this.descval = descval;
	}

	public String getProprice() {
		return proprice;
	}

	public void setProprice(String proprice) {
		this.proprice = proprice;
	}

	public String getProoldprice() {
		return prooldprice;
	}

	public void setProoldprice(String prooldprice) {
		this.prooldprice = prooldprice;
	}

	public Integer getSaleqty() {
		return saleqty;
	}

	public void setSaleqty(Integer saleqty) {
		this.saleqty = saleqty;
	}

	public String getKeyword() {
		return keyword;
	}

	public void setKeyword(String keyword) {
		this.keyword = keyword;
	}

	public Date getStime() {
		return stime;
	}

	public void setStime(Date stime) {
		this.stime = stime;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getFclassid() {
		return fclassid;
	}

	public void setFclassid(Integer fclassid) {
		this.fclassid = fclassid;
	}

	public Integer getSclassid() {
		return sclassid;
	}

	public void setSclassid(Integer sclassid) {
		this.sclassid = sclassid;
	}

	public Integer getTclassid() {
		return tclassid;
	}

	public void setTclassid(Integer tclassid) {
		this.tclassid = tclassid;
	}

	public Integer getBid() {
		return bid;
	}

	public void setBid(Integer bid) {
		this.bid = bid;
	}


	public String getbTypeName() {
		return bTypeName;
	}

	public void setbTypeName(String bTypeName) {
		this.bTypeName = bTypeName;
	}


	public String getActivitySign() {
		return activitySign;
	}

	public void setActivitySign(String activitySign) {
		this.activitySign = activitySign;
	}

	public String getPoint() {
		return point;
	}

	public void setPoint(String point) {
		this.point = point;
	}

	public String getProCode() {
		return proCode;
	}

	public void setProCode(String proCode) {
		this.proCode = proCode;
	}
}
